﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Traceability.Register.Domain
{
    /// <summary>
    /// 溯源信息表
    /// </summary>
    [Table("Traceabilitys")]
    public class Traceabilitys
    {
        /// <summary>
        /// 溯源编号
        /// </summary>
        [Key]
        public int TraceabilityId {  get; set; }
        /// <summary>
        /// 商品编号
        /// </summary>
        public int GoodId {  get; set; }
        /// <summary>
        /// 生产批次
        /// </summary>
        [StringLength(100)]
        public string ProductionBatch { get; set; } = string.Empty;
        /// <summary>
        /// 保质期(天)
        /// </summary>
        public int ExprirationDate {  get; set; }
        /// <summary>
        /// 生产许可证
        /// </summary>
        [StringLength(200)]
        public string ProductionLicense { get; set; } = string.Empty;
        /// <summary>
        /// 生产企业
        /// </summary>
        [StringLength(100)]
        public string ProductionEnterprise { get; set; } = string.Empty;
        /// <summary>
        /// 封面图
        /// </summary>
        [StringLength(500)]
        public string GoverImarger { get; set; } = string.Empty;
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted {  get; set; }
        /// <summary>
        /// 产品检验报告
        /// </summary>
        [StringLength(1000)]
        public string? PImg {  get; set; }
    }
}
